package com.meixiang.entity.shopping;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 购物车店铺分开结算
 *
 * @author LZRUI
 */
public class CartBalanceStoreEntity implements Parcelable {

    private String storeName; // 总店商品
    private String goodsCount; // 商品数量
    private String totalPrice; // 合计价格
    private String cartIds;

    public CartBalanceStoreEntity() {
    }

    public CartBalanceStoreEntity(String storeName, String goodsCount, String totalPrice, String cartIds) {
        this.storeName = storeName;
        this.goodsCount = goodsCount;
        this.totalPrice = totalPrice;
        this.cartIds = cartIds;
    }

    public String getStoreName() {
        return storeName == null ? "" : storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getGoodsCount() {
        return goodsCount == null ? "" : goodsCount;
    }

    public void setGoodsCount(String goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getTotalPrice() {
        return totalPrice == null ? "" : totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getCartIds() {
        return cartIds == null ? "" : cartIds;
    }

    public void setCartIds(String cartIds) {
        this.cartIds = cartIds;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.storeName);
        dest.writeString(this.goodsCount);
        dest.writeString(this.totalPrice);
        dest.writeString(this.cartIds);
    }

    protected CartBalanceStoreEntity(Parcel in) {
        this.storeName = in.readString();
        this.goodsCount = in.readString();
        this.totalPrice = in.readString();
        this.cartIds = in.readString();
    }

    public static final Parcelable.Creator<CartBalanceStoreEntity> CREATOR = new Parcelable.Creator<CartBalanceStoreEntity>() {
        @Override
        public CartBalanceStoreEntity createFromParcel(Parcel source) {
            return new CartBalanceStoreEntity(source);
        }

        @Override
        public CartBalanceStoreEntity[] newArray(int size) {
            return new CartBalanceStoreEntity[size];
        }
    };
}
